import type { MessageList } from '@/api/message/type'

export type MessageType = {
	userId: {
		_id: string;
		nick: string;
		imgUrl: string;
	},
	/*
		type: 0 => 自己的消息  1 => 对方的消息
		msgType: 0 => 文字消息  1 => 图片消息
	*/
	type: number;
	time: string | Date;
	msgType: number;
	message: string;
}

export interface MessageStoreType {
    messageChatList: MessageType[],
	messageList: MessageList[]
}